<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeBehind="FileStatsOverview.aspx.cs" Inherits="MusicmanWeb.USER.FileStatsOverview" Title="Musicman Levi9 | File properties" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
<div class="shim column"></div>
<div class="page" id="home">
<div id="sidebar">
&#160;
</div>
    <div id="content">
        <asp:Repeater ID="repeater1" runat="server" DataSourceID="ObjectDataSource2">
            <HeaderTemplate>
                <table>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>Name</td>
                    <td><%# Eval("Name") %></td>
                </tr>
                <tr>
                    <td>Location</td>
                    <td><%# Eval("Location") %></td>
                </tr>
                <tr>
                    <td>Full path</td>
                    <td><%# Eval("Fullpath")%></td>
                </tr>
                <tr>
                    <td>Size</td>
                    <td><%# Eval("TotalLengthMB")%></td>
                </tr>

            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <br />
    <asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1" DefaultMode="ReadOnly">
    <ItemTemplate>
            <asp:HiddenField ID="FileID" runat="server" Value='<%# Bind("SearchFileID") %>'/>
            <table>
                <tr>
                    <td>
                        TotalDownloads:
                    </td>
                    <td align="Right">
                        <%# Eval("TotalDownloads") %>
                        <%--<asp:TextBox ID="TextBox1" ReadOnly="true" runat="server" Text='<%# Bind("TotalDownloads") %>'></asp:TextBox><br />--%>
                    </td>
                </tr>
                <tr>
                     <td>
                        TotalVoted:
                    </td>
                    <td align="Right">
                        <%# Eval("TotalVoted") %>
                        <%--<asp:TextBox ID="TextBox2" ReadOnly="true" runat="server" Text='<%# Bind("TotalVoted") %>'></asp:TextBox><br />--%>
                    </td>
                </tr>
                <tr>
                    <td>
                        Rating:
                    </td>
                    <td align="Right">
                        <%# Eval("Rating") %>
                        <%--<asp:TextBox ID="TextBox3" ReadOnly="true" runat="server" Text='<%# Bind("Rating") %>'></asp:TextBox><br />--%>
                    </td>
                </tr>    
                <tr>
                    <td>
                        Mark:
                    </td>
                    <td align="Right">
                        <asp:DropDownList ID="DropDownList1" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>    
               <tr>
               <td colspan="2">
                <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                    Text="Update" OnCommand="Button1_Click"></asp:LinkButton>
               </td>
               </tr>
            </table>

            </ItemTemplate>
    </asp:FormView>
    </div>
</div>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetSearchFileStats" TypeName="Musicman.Business.DataManager" EnableCaching="false">
    <SelectParameters>
        <asp:QueryStringParameter Name="fileID" QueryStringField="Fileid" Type="Int64" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetSearchResult" TypeName="Musicman.Business.DataManager" EnableCaching="false">
    <SelectParameters>
        <asp:QueryStringParameter Name="searchFileID" QueryStringField="Fileid" Type="Int64" />
    </SelectParameters>
</asp:ObjectDataSource>
</asp:Content>
